<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>需求</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="svm.setup.html">安装／配置</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="svm.installation.html">安装</a></div>
 <div class="up"><a href="svm.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="svm.requirements" class="section">
  <h2 class="title">需求</h2>
  <p class="para">
   Libsvm itself is required, and is available through some package 
   management - libsvm-devel for RPM based system or libsvm-dev for 
   Debian based ones. Alternatively it is available direct from the website. 
   If installing from the <a href="http://www.csie.ntu.edu.tw/~cjlin/libsvm" class="link external">&raquo;&nbsp;official website</a> 
   then some steps will need to be taken as the package does not install 
   automatically. For example, assuming the latest version is 3.1:
  </p>
  <div class="example-contents screen">
<div class="cdata"><pre>
wget http://www.csie.ntu.edu.tw/~cjlin/cgi-bin/libsvm.cgi?+http://www.csie.ntu.edu.tw/~cjlin/libsvm+tar.gz 
tar xvzf libsvm-3.1.tar.gz 
cd libsvm-3.1
make lib 
cp libsvm.so.1 /usr/lib 
ln -s libsvm.so.1 libsvm.so 
ldconfig 
ldconfig --print | grep libsvm
</pre></div>
  </div>

  <p class="para">
   This last step should show libsvm is installed.
  </p>
 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="svm.setup.html">安装／配置</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="svm.installation.html">安装</a></div>
 <div class="up"><a href="svm.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
